package org.kazuhiko.rpg.server.gui;

import java.awt.Color;

public enum CommandType
{
	COMMAND( "command", Color.white ),
	NOT_FOUND( "", Color.red ),
	TELEPORT( "teleport", Color.orange );
	
	private Color textColor;
	private String command;
	
	CommandType( String command, Color textColor )
	{
		this.command = command;
		this.textColor = textColor;
	}
	
	public Color getTextColor()
	{
		return textColor;
	}
	
	public String getCommand()
	{
		return command;
	}
	
	public CommandType valueOfString( String command )
	{
		if( command.equals( "teleport" ) )
		{
			return TELEPORT;
		}
		else
		{
			return NOT_FOUND;
		}
	}
}
